package lesson14;



public class PersonDemo {
	public static void main(String[] args) {
		
		Person ivan = new Person();
		Person mariq = new Person();
		
		ivan.name="Ivan";
		ivan.age=25;
		ivan.personalNumber="8612025281";
		ivan.sex='m';
		ivan.weight=80.5;
		
		mariq.name="Maria";
		mariq.age=21;
		mariq.personalNumber="8203301201";
		mariq.sex='f';
		mariq.weight=55.0;
		
		System.out.println("ivan`s helth = "+ ivan.health);
		System.out.println("mariq`s helth = "+ mariq.health);
		System.out.println("mariq`s hunger = "+ mariq.starvationStatus);
		System.out.println("ivan`s hunger = "+ ivan.starvationStatus);
		ivan.eat(10);
		mariq.walk();

		System.out.println("ivan`s helth = "+ ivan.health);
		System.out.println("mariq`s helth = "+ mariq.health);
		System.out.println("mariq`s hunger = "+ mariq.starvationStatus);
		System.out.println("ivan`s hunger = "+ ivan.starvationStatus);
	}
}
